import request from '@/utils/request'
import {
  getToken
} from '@/utils/auth'

export function getList(params) {
  return request({
    url: '/xiandu/admin/v1/list_shop',
    method: 'get',
    params: { ...params,
      token: getToken('token')
    }
  })
}

export function createShop(data) {
  return request({
    url: '/xiandu/admin/v1/create_shop',
    method: 'post',
    data
  })
}

export function editShop(data) {
  return request({
    url: '/xiandu/admin/v1/edit_shop',
    method: 'post',
    data
  })
}

export function delShop(data) {
  return request({
    url: '/xiandu/admin/v1/del_shop',
    method: 'post',
    data
  })
}